home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PROGRAMM / PASCAL / 0635.ZIP / SETTIME.INC < prev    next >
Text File  |  1987-07-24  |  443b  |  18 lines

  1. Procedure SetTime(Hours,Minutes,Seconds,Hundredths:Integer);
  2. {** Sets the system time through a DOS call. Parameters are units of time **}
  3. Type
  4.   RegPack = Record
  5.             AX,BX,CX,DX,BP,SI,DI,DS,ES,Flags : Integer;
  6.             End;
  7. Var
  8.   Registers : RegPack;
  9. Begin
  10. With Registers do
  11.   Begin
  12.   AX := $2D shl 8;
  13.   CX := (Hours shl 8) + Minutes;
  14.   DX := (Seconds shl 8) + Hundredths;
  15.   End;
  16. MSDos(Registers);
  17. End; {SetTime}
  18.